package com.qq.mall.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qq.mall.beans.IndexImg;
import com.qq.mall.mapper.IndexImgMapper;
import com.qq.mall.service.IndexImgService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class IndexImgServiceImpl extends ServiceImpl<IndexImgMapper, IndexImg> implements IndexImgService {
    @Resource
    IndexImgMapper indexImgMapper;

    @Override
    public List<IndexImg> indexImg(){
        QueryWrapper<IndexImg> wrapper=new QueryWrapper<>();
        wrapper.eq("status","1");
        wrapper.orderByAsc("seq");
        return indexImgMapper.selectList(wrapper);
    }
}
